#ifndef __CALIBCAMERE_H__
#define __CALIBCAMERE_H__

#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/calib3d/calib3d.hpp>
#include<iostream>
using namespace std;
using namespace cv;

namespace cabil
{
	struct Presetpara
	{
		int imagewidth;
		int imageheight;
		int boardwidth;
		int boardheigt;
		int boardcorner;
		int framenumber;
		int squaresize;
		Size boardsize;
		Mat intrinsic;
		Mat distortion;
		vector<Mat>rvecs;
		vector<Mat>tvecs;
		vector<vector<Point2f>>corners;
		vector<vector<Point3f>>objrealpoint;
		char filename[100];
	};
	//enum
	//{
	//	h, h1 = 3
	//};
void cabilstart(Presetpara presetpara, bool Isoutput);
}

#endif